import 'package:flutter/material.dart'hide SearchController;
import 'package:flutter_menu/biz/login/login_controller.dart';
import 'package:flutter_menu/biz/login/login_pg.dart';
import 'package:flutter_menu/biz/order/order_controller.dart';
import 'package:flutter_menu/biz/order/order_pg.dart';
import 'package:flutter_menu/biz/order/record/order_record_controller.dart';
import 'package:flutter_menu/biz/order/record/order_record_pg.dart';
import 'package:flutter_menu/biz/setting/setting_controller.dart';
import 'package:flutter_menu/biz/setting/setting_pg.dart';
import 'package:flutter_menu/biz/table/table_controller.dart';
import 'package:flutter_menu/biz/table/table_pg.dart';
import 'package:get/get.dart';

class MenuPages {
  static const Menu_Home = '/Menu/home';
  static const Menu_Login = '/Menu/login';
  static const Menu_Order = '/Menu/order';
  static const Menu_Order_Table = '/Menu/order/table';
  static const Menu_Order_Record = '/Menu/order/record';
  static const Menu_Setting = '/Menu/setting';

  static final List<GetPage> routes = [
    GetPage(
      name: Menu_Login,
      page: () => LoginPage(),
      binding: BindingsBuilder(() {
        Get.put(LoginController());
      }),
    ),
    GetPage(
        name: Menu_Order,
        page: () => const OrderPage(),
        binding: BindingsBuilder(() {
          Get.put(OrderController());
        })),
    GetPage(
        name: Menu_Order_Record,
        page: () =>  OrderRecordPg(),
        binding: BindingsBuilder(() {
          Get.put(OrderRecordController());
        })),
    GetPage(
      name: Menu_Order_Table,
      page: () => TablePg(),
      binding: BindingsBuilder(() {
        Get.put(TableController());
      }),
    ),

    GetPage(
      name: Menu_Setting,
      page: () => SettingPg(),
      binding: BindingsBuilder(() {

      }),
    ),
  ];
}
